package com.example.hyvelucenedemo.pojo;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @Description 分页PageVO
 * @Duthor jie.zhao
 * @Date 2021/5/9 9:31 下午
 */
@Data
public class SearchPageVO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 当前页数
     */
    private int number;

    /**
     * 每页数量
     */
    private int size;

    /**
     * 返回结果
     */
    private List<SearchItem> content;

    /**
     * 总条数
     */
    private long totalElements;

    /**
     * 总页数
     */
    private long totalPages;

    public SearchPageVO(int number, int size) {
        this.number = number;
        this.size = size;
    }
}
